package com.securitytrace.service.exception;

import java.io.Serializable;

public class CannotFoundByPKException extends RuntimeException {

	private static final long serialVersionUID = -1803563117987513101L;

	private Class<?> modelClass;
	private Serializable primaryKey;
	private String sql;

	public CannotFoundByPKException(Class<?> modelClass,
			Serializable primaryKey, String sql) {
		this.modelClass = modelClass;
		this.primaryKey = primaryKey;
		this.sql = sql;
	}

	public CannotFoundByPKException(Class<?> modelClass,
			Serializable primaryKey, String sql, Throwable cause) {
		super(cause);
		this.modelClass = modelClass;
		this.primaryKey = primaryKey;
		this.sql = sql;
	}

	public Class<?> getModelClass() {
		return modelClass;
	}

	public Serializable getPrimaryKey() {
		return primaryKey;
	}

	public String getSql() {
		return sql;
	}

}
